home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 June
/
PCWorld_2007-06_cd.bin
/
v cisle
/
wua
/
WindowsVistaUpgradeAdvisor.msi
/
_2E273B4721FD61938FC8C146C395840E
/
BktOutputReverseTransform.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2007-02-06
|
5KB
|
135 lines
<?xml version="1.0"?>
<!-- ==================================================================== -->
<!-- ============ Copyright (c) 2006 Microsoft Corporation ============= -->
<!-- ==================================================================== -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" indent="yes" />
<xsl:template match="/">
<!-- ============================================ -->
<!-- ========== VARIABLE SECTION START ========== -->
<!-- ============================================ -->
<xsl:variable name="NEWLINE">
<xsl:text> </xsl:text>
</xsl:variable>
<xsl:variable name="LOWERCASE" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="UPPERCASE" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<!-- ========================================== -->
<!-- ========== VARIABLE SECTION END ========== -->
<!-- ========================================== -->
<Log>
<!-- ====================================== -->
<!-- ========= SoftwareList START ========= -->
<!-- ====================================== -->
<SoftwareList>
<!-- ====================================== -->
<!-- ========= Application START ========== -->
<!-- ====================================== -->
<xsl:for-each select="//SoftwareList/Application" >
<xsl:copy>
<xsl:for-each select="@*">
<xsl:copy />
</xsl:for-each>
<xsl:attribute name="FilesSignature">
<xsl:value-of select="StaticProperties/Files/@Id" />
</xsl:attribute>
<!-- ====================================== -->
<!-- ==== Copy all Indicator instances ==== -->
<!-- ====================================== -->
<xsl:for-each select="Indicators/*/*">
<xsl:variable name="TYPE" select="name(.)" />
<xsl:element name="StaticProperty">
<xsl:attribute name="Type">
<xsl:value-of select="$TYPE" />
</xsl:attribute>
<xsl:for-each select="@*">
<xsl:copy />
</xsl:for-each>
</xsl:element>
</xsl:for-each>
<!-- =========================================== -->
<!-- =============== Indicator END ============= -->
<!-- =========================================== -->
<!-- =========================================== -->
<!-- ==== Copy all StaticProperty instances ==== -->
<!-- =========================================== -->
<xsl:for-each select="StaticProperties/Files/File">
<xsl:variable name="TYPE" select="name(.)" />
<xsl:element name="StaticProperty">
<xsl:attribute name="Type">
<xsl:value-of select="$TYPE" />
</xsl:attribute>
<xsl:for-each select="@*">
<xsl:copy />
</xsl:for-each>
<!-- =========================================== -->
<!-- ==== Copy all DynamicProperty instances === -->
<!-- =========================================== -->
<xsl:if test="DynamicProperties">
<xsl:for-each select="DynamicProperties/*/*">
<xsl:variable name="TYPE2" select="name(.)" />
<xsl:element name="DynamicProperty">
<xsl:attribute name="Type">
<xsl:value-of select="$TYPE2" />
</xsl:attribute>
<xsl:for-each select="@*">
<xsl:copy />
</xsl:for-each>
</xsl:element>
</xsl:for-each>
</xsl:if>
</xsl:element>
</xsl:for-each>
<!-- =========================================== -->
<!-- ============ StaticProperty END =========== -->
<!-- =========================================== -->
</xsl:copy>
</xsl:for-each>
<!-- ====================================== -->
<!-- ========== Application END =========== -->
<!-- ====================================== -->
</SoftwareList>
<!-- ====================================== -->
<!-- ========= SoftwareList END =========== -->
<!-- ====================================== -->
</Log>
</xsl:template>
</xsl:stylesheet>